package generics;

interface GenericsMethod{
	void a();
	void b();
}
public class GenericsMethodBorder implements GenericsMethod{
	public void a() {
		System.out.println("a");
	}
	public void b() {
	}
	public GenericsMethodBorder(){
	}
	public <T extends GenericsMethod> T c(T t){
		t.a();
		return t;
	}
	public static void main(String[] args) {
		GenericsMethodBorder g = new GenericsMethodBorder();
		g.c(new GenericsMethodBorder());
	}
}
